package cn.gzjp.modules.gas.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.gas.entity.GasGun;
import cn.gzjp.modules.gas.dao.GasGunDao;

/**
 * 加油站油枪Service
 * @author zengcp
 * @version 2018-03-05
 */
@Service
@Transactional(readOnly = true)
public class GasGunService extends CrudService<GasGunDao, GasGun> {

	public GasGun get(String id) {
		return super.get(id);
	}
	
	public List<GasGun> findList(GasGun gasGun) {
		return super.findList(gasGun);
	}
	
	public Page<GasGun> findPage(Page<GasGun> page, GasGun gasGun) {
		return super.findPage(page, gasGun);
	}
	
	@Transactional(readOnly = false)
	public void save(GasGun gasGun) {
		super.save(gasGun);
	}
	
	@Transactional(readOnly = false)
	public void delete(GasGun gasGun) {
		super.deleteByLogic(gasGun);
	}
	
}